home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Frameworks / TransSkel 3.24 / Source / SkelWindTitleHt.c < prev    next >
Text File  |  1996-01-17  |  505b  |  21 lines

  1. /*
  2.  * Determine height of a window's title bar.  This is determined as the
  3.  * difference between the top of the window's structure and content rects.
  4.  *
  5.  * This function will not necessarily work for windows with strange shapes
  6.  * or that have a title bar on the side.
  7.  */
  8.  
  9. # include    "TransSkel.h"
  10.  
  11.  
  12. pascal short
  13. SkelGetWindTitleHeight (WindowPtr w)
  14. {
  15. Rect    content;
  16. Rect    structure;
  17.  
  18.     SkelGetWindContentRect (w, &content);
  19.     SkelGetWindStructureRect (w, &structure);
  20.     return (content.top - structure.top);
  21. }